<?php declare(strict_types=1);
/**
 * @author      xianganyall <xianganyall@gmail.com>
 * @copyright   2023-2025 owner
 **/

namespace Srv\Conf\ConfModel;

use Srv\Libs\ConfModel\ConfAbstract;

final class SmsConf extends ConfAbstract
{
    public const PREFIX                         = 'SMS.';       // 配置前缀[必定点结尾]
    private string $groupName                   = '';           // 分组名
    protected string $appId                     = '';           // 短信应用Id
    protected string $appSign                   = '';           // 短信签名文本
    protected string $secretId                  = '';           // 密钥Id
    protected string $secretKey                 = '';           // 密钥Key
    protected string $logPath                   = '';           // 日志文件路径

    /**
     * @param array $confData
     * @param string $groupName
     */
    public function __construct(array $confData, string $groupName)
    {
        $this->init($confData);
        $this->groupName = $groupName;
    }

    /**
     * @return string
     */
    public function getGroupName(): string
    {
        return $this->groupName;
    }

    /**
     * @return string
     */
    public function getAppId(): string
    {
        return $this->appId;
    }

    /**
     * @return string
     */
    public function getAppSign(): string
    {
        return $this->appSign;
    }

    /**
     * @return string
     */
    public function getSecretId(): string
    {
        return $this->secretId;
    }

    /**
     * @return string
     */
    public function getSecretKey(): string
    {
        return $this->secretKey;
    }

    /**
     * @return string
     */
    public function getLogPath(): string
    {
        return $this->logPath;
    }
}